<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新增课程信息</title>
</head>
<body>
<h1>录入课程信息</h1>
<form action="/course/add" method="post">
    课程名称：<input type="text" name="name"><br>
    <br>
    任课老师：<select name="teacherId" style="width: 200px;">
    <option   th:each="subject:${session.teachers}" th:value="${subject.id}" th:text="${subject.name}"></option>
</select><br><br>
    选择班级：<select name="classzId" style="width: 200px;">
    <option   th:each="subject:${session.classzs}" th:value="${subject.id}" th:text="${subject.name}"></option>
</select><br>
    <br>
    选择上课时间：<input type="datetime-local" name="startTime"/><br><br>
    <input type="submit" value="提交">&nbsp;&nbsp;
    <a style="border: black 1px solid;" href="/course/list">返回</a>
</form>

</body>
</html>